Package com.cisco.pt.PopupMenuItem
Interface PopupMenuItem
- All Superinterfaces:
IPCObject
- All Known Implementing Classes:
PopupMenuItemImpl
Information provided by the PKI file:
\class MenuItem
\brief MenuItem is an item in the Menu object.
\example appWindow().getMenuBar().getFilePopupMenu().getMenuItemByName("Save")
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Information provided by the PKI file:getUuid()Information provided by the PKI file:voidInformation provided by the PKI file:voidsetEnabled(boolean bEnabled) Information provided by the PKI file:voidsetVisible(boolean bVisible) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Method Details
-
getUuid
UUID getUuid()Information provided by the PKI file:
\brief Returns the UUID of this menu item. \return uuid, the UUID of this menu item.- Returns:
- UUID Returns a UUID
-
removeItem
void removeItem()Information provided by the PKI file:
\brief Removes this menu item from the parent menu. -
getLabel
String getLabel()Information provided by the PKI file:
\brief Returns the label for this menu item. \return QString, the label for this menu item.- Returns:
- String Returns a String
-
setEnabled
void setEnabled(boolean bEnabled) Information provided by the PKI file:
\brief Enables or disables this menu item. \param bEnabled, true to enable this menu item, false to disable it.- Parameters:
bEnabled- Takes in a parameter of bEnabled
-
setVisible
void setVisible(boolean bVisible) Information provided by the PKI file:
\brief Shows or hides this menu item. \param bVisible, true to show this menu item, false to hide it.- Parameters:
bVisible- Takes in a parameter of bVisible
-